<?php
defined('SYS_IN') OR die('error');
class controller extends base{
	/**
	 * view对象
	 **/
	private static $_view = null;

	public function __get($name){
		switch($name){
			case 'view':
				return self::_getView(); break;
			default:
				return parent::__get($name);
		}
	}
	/**
	 * 获取view对象
	 **/
	private static function _getView(){
		if(empty(self::$_view)){
			self::$_view = new view();
		}
		return self::$_view;
	}
}
?>